#include "datacurve.h"

DataCurve::DataCurve() :signal_data(new SignalData())
{
	signal_data->addPoint(0.0, 0.0);
	setSamples(signal_data);
}
void DataCurve::addPoint(double x, double y)
{
	signal_data->addPoint(x, y);
}
void DataCurve::updateRect()
{
	signal_data->bounding.setLeft(signal_data->bounding.right());
	signal_data->bounding.setTop(signal_data->data_points.last().y());
	signal_data->bounding.setBottom(signal_data->data_points.last().y());
}
DataCurve::~DataCurve()
{

}
